<?php
namespace App\Libs\Exts;

use Illuminate\Validation\Validator;

class ValidatorExts extends Validator
{
    
    public function validatePhone($attribute, $value,$parameters){

        return preg_match("/^1[34578]{1}\\d{9}$/",$value);
    }
    public function validateNotExists($attribute, $value,$parameters){

        return !$this->validateExists($attribute, $value,$parameters);
    }
}